package org.dromara.crawler.mongo.mongoservice;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mongoplus.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.crawler.domain.bo.KnowledgeTargetBo;
import org.dromara.crawler.mongo.mongodomain.KnowledgeEvent;

import java.util.List;
import java.util.Map;


public interface KnowledgeEventService  extends IService<KnowledgeEvent> {

    List<KnowledgeEvent> getEventAll();

    KnowledgeEvent queryEventById(String id);

    Map<String, Long> getPredictedCategoryStats();

    List<KnowledgeEvent> queryEvent(KnowledgeTargetBo knowledgeTargetBo);

    Page<KnowledgeEvent> queryByEventPage(KnowledgeTargetBo knowledgeTargetBo, PageQuery pageQuery);

}
